<template>
	<view>
		<!-- <view class="items" v-for="(items,index) in shiList" :key="items.id" @click="chooseCity(items)">
			{{items.name}}
		</view>
		<view class="cose" @click="end">
			X
		</view>
		 -->
		<u-modal @confirm="confirm($event,'/pages/mine/userSetting')" title="签署劳务合同" :showCancelButton="true"
			cancelText="取消" confirmText="签署劳务合同" :confirmStyle="{color:'#3975EA'}" @cancel="cancel" v-model="showSign">
			<view class="bigBox">
				<view>
					<view class="modelFont">
						为确保账号所有功能正常使用
					</view>
					<view class="modelFont">
						请先签署劳务合同
					</view>
				</view>
		
			</view>
		</u-modal>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shiquzheng: [],
				shiList: [],
				showSign:true,
				// showType: false,
				// cityTree: [],
				// provinceId: 0,
				// tenantCode: 0,
				// scrollTop: 0,
				// indexList: [],
				// city: []
			}
		},
		// onPageScroll(e) {
		// 	this.scrollTop = e.scrollTop
		// },
		created() {
			this.getTreeCity()
		},
		onInit() {

		},

		methods: {
			getTreeCity() {
				this.$axios.request(this.$api.getCityTenantCodeAp, "GET").then((val) => {
					this.shiList = val.data
					console.log(this.shiList,'this.shiList')
				})

			},
			chooseCity(city) {
				this.provinceId = city.id
				this.tenantCode = city.tenantCode ? city.tenantCode : 1001
				this.$next(
					`/pages/mine/login?userType=0&provinceId=${this.provinceId}&tenantCode=${this.tenantCode}`
				)
				this.close()
			},
			close() {
				this.$store.commit("setShowAreaType", 0)
			},
			// 关闭选择地区
			end() {
				uni.showTabBar()
				uni.reLaunch({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style>



</style>
